package com.yuecai.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;
import static org.springframework.http.HttpStatus.BAD_REQUEST;


@Getter
public class SKUStockException extends RuntimeException {

    private Integer status = BAD_REQUEST.value();

    public SKUStockException(String msg){
        super(msg);
    }

    public SKUStockException(HttpStatus status, String msg){
        super(msg);
        this.status = status.value();
    }
}
